package com.example.androidmqtt.Mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.androidmqtt.Entry.Subscribe;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

/**
 * @author: pjg
 * @time: 2022/9/15
 */
@Mapper
public interface SubscribeMapper extends BaseMapper<Subscribe> {

    @Update("update subscribe set iscancel=#{isCancel} where sub_user=#{one.subUser} and sub_department=#{one.subDepartment}")
    int updateByCancel(Subscribe one, Integer isCancel);
}
